package request

type AdminLogs struct {
	Router  string `form:"router" json:"router" binding:"max=120" label:"路由地址"`
	AdminID uint   `form:"admin_id" json:"admin_id" binding:"number" label:"操作人"`
	Time1   string `form:"time1" json:"time1" binding:"omitempty,datetime=2006-01-02 15:04:05Z07:00" label:"开始时间"`
	Time2   string `form:"time2" json:"time2" binding:"omitempty,datetime=2006-01-02 15:04:05Z07:00" label:"结束时间"`
}

func (adminLogs AdminLogs) GetMessages() ValidatorMessages {
	return ValidatorMessages{
		"number":   ":label格式不正确",
		"max":      ":label超出长度",
		"datetime": ":label格式不正确",
	}
}
